package cevent.source.cloudcenter.server.dto;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;


/**
 * @author cevent
 * @description 留言管理表 模块传输层
 */
public class GuestBookClientDto {

    //唯一ID
    private String uniId;
    //会员ID
    private String memberId;
    //会员名
    private String memberName;
    //会员头像
    private String memberIcon;
    //员工ID
    private String employeeId;
    //员工名
    private String employeeName;
    //员工头像
    private String employeeIcon;
    //留言内容
    private String content;
    //回复内容
    private String replyContent;
    //父ID
    private String parentId;
    //是否显示
    private Integer isShow;
    //排序
    private Integer sort;
    //回复状态
    private Integer reply;
    //父子结构必备参数，传入children
    private List<GuestBookClientDto> children;
    //父子结构加载(el-table)
    private boolean hasChildren;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    public String getUniId() {
        return uniId;
    }

    public void setUniId(String uniId) {
        this.uniId = uniId;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getMemberIcon() {
        return memberIcon;
    }

    public void setMemberIcon(String memberIcon) {
        this.memberIcon = memberIcon;
    }

    public String getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public String getEmployeeIcon() {
        return employeeIcon;
    }

    public void setEmployeeIcon(String employeeIcon) {
        this.employeeIcon = employeeIcon;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getReplyContent() {
        return replyContent;
    }

    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public Integer getIsShow() {
        return isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getReply() {
        return reply;
    }

    public void setReply(Integer reply) {
        this.reply = reply;
    }

    public List<GuestBookClientDto> getChildren() {
        return children;
    }

    public void setChildren(List<GuestBookClientDto> children) {
        this.children = children;
    }

    public boolean isHasChildren() {
        return hasChildren;
    }

    public void setHasChildren(boolean hasChildren) {
        this.hasChildren = hasChildren;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("GuestBookClientDto{");
        sb.append("uniId='").append(uniId).append('\'');
        sb.append(", memberId='").append(memberId).append('\'');
        sb.append(", memberName='").append(memberName).append('\'');
        sb.append(", memberIcon='").append(memberIcon).append('\'');
        sb.append(", employeeId='").append(employeeId).append('\'');
        sb.append(", employeeName='").append(employeeName).append('\'');
        sb.append(", employeeIcon='").append(employeeIcon).append('\'');
        sb.append(", content='").append(content).append('\'');
        sb.append(", replyContent='").append(replyContent).append('\'');
        sb.append(", parentId='").append(parentId).append('\'');
        sb.append(", isShow=").append(isShow);
        sb.append(", sort=").append(sort);
        sb.append(", reply=").append(reply);
        sb.append(", children=").append(children);
        sb.append(", hasChildren=").append(hasChildren);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append('}');
        return sb.toString();
    }
}
